/*
 * SocketListener.h
 *
 *  Created on: 2009-8-20
 *      Author: fanliangliang
 */

#ifndef SOCKET_LISTENER_H_
#define SOCKET_LISTENER_H_

#include "Common.h"

class MSocketListener {
public:
	virtual void OnResolved() = 0;
	virtual void OnConnected() = 0;
	virtual void OnDisconnected() = 0;
	virtual void OnReceived(const TDesC8& aBuffer) = 0;
	virtual void OnStateChanged(TSocketState aState) = 0;
	virtual void OnSocketError(TSocketError aError) = 0;
};

#endif /* SOCKET_LISTENER_H_ */
